import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";




// 今日预警总数
export function getTodayAlertCount(query) {
  return request({
    url: '/analysis/statistic/getTodayAlertCount',
    method: 'get',
    params: query
  })
}

// 今日负面总数
export function getTodayNegativeCount(query) {
  return request({
    url: '/analysis/statistic/getTodayNegativeCount',
    method: 'get',
    params: query
  })
}

// 今日舆情总数
export function getTodayPublicOpinionCount(query) {
  return request({
    url: '/analysis/statistic/getTodayPublicOpinionCount',
    method: 'get',
    params: query
  })
}

// 近七日日舆情总数
export function getPastSevenDaysPublicOpinionCount(query) {
  return request({
    url: '/analysis/statistic/getPastSevenDaysPublicOpinionCount',
    method: 'get',
    params: query
  })
}

// 近七日负面信息热力图
export function negativeInformationHeatMap(query) {
  return request({
    url: '/analysis/statistic/negativeInformationHeatMap',
    method: 'get',
    params: query
  })
}

//正负面信息趋势图
export function getSentimentByPublishTimeByTenantCode(query) {
  return request({
    url: '/analysis/statistic/getSentimentByPublishTimeByTenantCode',
    method: 'get',
    params: query
  })
}

//舆情数量按省分组
export function getPublicOpinionCountGroupByProvinceOfTenantCode(query) {
  return request({
    url: '/analysis/statistic/getPublicOpinionCountGroupByProvinceOfTenantCode',
    method: 'get',
    params: query
  })
}

//获取当前企业内的负面信息
export function getNegativeListOfTenantCode(query) {
  return request({
    url: '/analysis/statistic/getNegativeListOfTenantCode',
    method: 'get',
    params: query
  })
}
//获取当前企业内的热门信息
export function getHotListOfTenantCode(query) {
  return request({
    url: '/analysis/statistic/getHotListOfTenantCode',
    method: 'get',
    params: query
  })
}




//获取热词
export function getHotWords(query) {
  return request({
    url: '/analysis/statistic/getHotWords',
    method: 'get',
    params: query
  })
}

// 媒体活跃榜
export function mostActiveMedia(query) {
  return request({
    url: '/analysis/statistic/mostActiveMedia',
    method: 'get',
    params: query,
  })
}

// 意见领袖榜
export function getOpinionLeaders(query) {
  return request({
    url: '/analysis/statistic/getOpinionLeaders',
    method: 'get',
    params: query,
  })
}



